using System;
using RollManager.Library.Utils;

namespace RollManager.Library.ActionSteps
{
    [Serializable]
    public class IISResetStep : ActionStep
    {
        public override string Name
        {
            get { return "IIS Reset"; }
        }

        protected override void Run()
        {
            Common.RunCommand( @"C:\WINDOWS\system32\iisreset", CurrentServer, Progress );
        }

        protected override void Simulate()
        {
            Progress.AddFormat( "Simulated IIS reset on {0}", CurrentServer );
        }
    }
}
